package com.cskaoyan.bean.data;

import lombok.Data;

import java.util.List;

/**
 * @author: thz
 * @class: BaseData
 */
@Data
public class BaseData<T> {
    int total;
    List<T> items;

    public static <T> BaseData<T> ok(List<T> items, int total) {
        BaseData<T> tBaseData = new BaseData<>();
        tBaseData.setItems(items);
        tBaseData.setTotal(total);
        return tBaseData;
    }
}
